package com.htyy.yutao.BottomNavigationViewPage;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.htyy.yutao.myapplication1.Main4Activity;
import com.htyy.yutao.myapplication1.Main5Activity;
import com.htyy.yutao.myapplication1.Main6Activity;
import com.htyy.yutao.myapplication1.R;
import com.htyy.yutao.myapplication1.ScrollingActivity;
import com.htyy.yutao.myapplication1.StatusBarWhiteCoordinatorActivity;
import com.htyy.yutao.myapplication1.SwiperView;
import com.htyy.yutao.myapplication1.ViewPagerLayoutManagerActivity;

import io.card.payment.CardIOActivity;
import io.card.payment.CreditCard;

/**
 * Created by Asus on 2018/5/3.
 */

public class View_three extends Fragment {
    private Button btn;
    private Button btn2;
    private Button btn3;
    private Button btn4;
    private Button btn5;
    private Button btn6;
    private Button btn7;

    private final int MY_SCAN_REQUEST_CODE = 1000;
    private String scanResultStr = "";


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.view_three, container, false);
        initView(view);
        return view;
    }

    public void initView(View view){

        btn=(Button) view.findViewById(R.id.button_to_new);
        btn2=(Button) view.findViewById(R.id.button_to_qq);
        btn3=(Button) view.findViewById(R.id.button_to_swiper);
        btn4=(Button) view.findViewById(R.id.button_to_yh);
        btn5=(Button) view.findViewById(R.id.button_to_rc);
        btn6=(Button) view.findViewById(R.id.btn_statusbar_white_coordinator);
        btn7=(Button) view.findViewById(R.id.dying);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),ScrollingActivity.class);
                startActivity(intent);
            }
        });
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),Main4Activity.class);
                startActivity(intent);
            }
        });
        btn3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                Toast.makeText(getActivity(), "五个步骤，成为优秀的前端工程师!", Toast.LENGTH_LONG).show();
                Intent intent =new Intent(getActivity(),SwiperView.class);
                startActivity(intent);
            }
        });
        btn4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),Main5Activity.class);
                startActivity(intent);
            }
        });
        btn5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),Main6Activity.class);
                startActivity(intent);
            }
        });
        btn6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),StatusBarWhiteCoordinatorActivity.class);
                startActivity(intent);
            }
        });
        btn7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),ViewPagerLayoutManagerActivity.class);
                startActivity(intent);
            }
        });
    }


}
